import request from '@/utils/request'
//
export default {
  /**
 * @description: 获取投入类型管理类型树状图 *代表必填
 * @param {String/Number} page *
 * @param {String/Number} size *
 * @param {Object} entity {componyId: 1} *
 * @param {String} order 排序方式 ASC DESC 默认ASC
 * @param {String} sort 自定义排序方式 'createTime'
 * @return {Array}
 */
  getStatisticalData(type) {
    return request.get(`/fish/base/equipment/queryStatistics?organizationNo=${sessionStorage.organizationNo}&type=${type}`)
  },
  queryEnergyDistribution(type) {
    return request.get(`/fish/base/equipment/queryEnergyDistribution?organizationNo=${sessionStorage.organizationNo}&type=${type}`)
  },
  // 监测量
  queryByEnergyCount(parmas) {
    return request.post('/fish/base/equipment/queryByEnergy', parmas)
  },
  // 监测累计量
  queryByEnergy(parmas) {
    return request.post('/fish/base/equipment/queryByEnergyCount', parmas)
  },
  // 时间段获取
  queryByCount(parmas) {
    return request.post('/fish/base/equipment/queryByCount', parmas)
  }
}
